<?php
/**
 * user获取用户信息接口调用
 * @文件名称: GetInfoAction.php
 * @author: jawei
 * @Email: gaozhiwei@etcp.cn
 * @Date: 2017-06-06
 * @Copyright: 2017 悦畅科技有限公司. All rights reserved.
 * 注意：本内容仅限于悦畅科技有限公司内部传阅，禁止外泄以及用于其他的商业目的
 */
namespace app\modules\user\actions\user;

use app\base\BaseService;
use app\modules\user\models\user\UserModel;
use app\modules\user\services\user\UserService;
use yii\base\Action;
use yii;

class GetInfoAction extends Action
{
    public function run() {
        $carOwerModel = UserModel::find();
        $countries = $carOwerModel
            ->select(['Id', 'Password', 'Mail'])
            ->where([
                'State' => 66,
                'Status' => 2,
            ])
            ->limit(10)
            ->asArray()
            ->all();
        $sql = $carOwerModel->createCommand()->getRawSql();
var_dump($sql);die;
        return BaseService::returnErrData([], 5001, '请重新登录');
    }
}